package leetcode;

public class GcdInOneLineCode {

	public static int gcd(int x,int y){
		return y==0?x:gcd(y,x%y);
	}
	public static void main(String[] args) {
		System.out.println(gcd(12, 8));
	}
}
